package com.maizhe.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.maizhe.dao.DevelopMapper;
import com.maizhe.dao.PlanMapper;
import com.maizhe.dao.ReportMapper;
import com.maizhe.dao.UserMapper;
import com.maizhe.entity.Develop;
import com.maizhe.entity.Plan;
import com.maizhe.entity.User;
import com.maizhe.entity.vo.UserVo;
import com.maizhe.service.DevelopService;
import com.maizhe.service.ReportService;
import com.maizhe.util.UUIDGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class ReportServiceImpl implements ReportService {

	@Autowired
	private ReportMapper reportMapper;


	public List<List<Map<String, Object>>> CountCustomer() {
		List<List<Map<String, Object>>> list=new ArrayList<List<Map<String, Object>>>();
		List<Map<String, Object>> list1=reportMapper.CountCustomerlevel();
		List<Map<String, Object>> list2=reportMapper.CountCustomerSatify();
		List<Map<String, Object>> list3=reportMapper.CountCustomerCredit();
		list.add(list1);
		list.add(list2);
		list.add(list3);
		return  list;
	}
}
